<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生管理</title>
<!--    <link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">-->
    <link href="./assets/bootstrap.css" rel="stylesheet">
    <link href="./assets/main.css" rel="stylesheet">
    <style>
        html, body {
            height: 100%;
        }
        .row,.container-fluid {
            height: 100%;
        }
         .bg-light {
             height: 100%;
             border: 1px #9d9d9d solid;
        }
         .iframe01 {
             height: 100%;
             width: 100%;
         }
         #title2 {
             height: 10%;
         }
         #iframe01 {
             width: 100%;
             height: 80%;
         }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <!-- Left Menu -->

        <!-- Buttons -->
        <div class="col-md-2 bg-light">
            <h2 class="text-center" id="demo" style="cursor: pointer;" onclick="location.reload();">DemoMean</h2>
            <ul class="nav nav-pills nav-stacked">
                <li id="item1" role="presentation" class="active"><a onclick="goStudent()">学生管理</a></li>
                <li id="item2" role="presentation"><a onclick="goType()">基础资料</a></li>
            </ul>
        </div>
        <!-- Right Content -->
        <div class="col-md-10 bg-light">

            <div class="iframe01">
                <h2 class="text-center" id="title2">学生信息</h2>
                <iframe id="iframe01" frameborder="no" border="0"  src="/student/list">
                </iframe>
            </div>

        </div>
    </div>
</div>
<script src="./assets/jquery.js"></script>
<script src="./assets/bootstrap.js"></script>
<script>
    function goStudent(){
        $('#iframe01', window.parent.document).attr('src','/student/list')
        $('#title2').text('学生管理')
        $("#item2").removeAttr("class");
        $("#item1").addClass("active");
    }
    function goType(){
        $('#iframe01', window.parent.document).attr('src','/type/list')
        $('#title2').text('学历管理')
        $("#item1").removeAttr("class");
        $("#item2").addClass("active");

    }
</script>
</body>
</html>
